<?php

class Application_Form_Shop extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	$nick_name=new Zend_Form_Element_Text("nice_name");
    	$nick_name->removeDecorator('Label')->removeDecorator('HtmlTag');
    	$nick_name->setAttrib("size", "50")
    		  ->setRequired(true)
    		  ->addFilter('StripTags')
    		  ->addFilter('StringTrim')
    		  ->addValidator('NotEmpty');
    	$submit=new Zend_Form_Element_Submit("提交");
    	$submit->removeDecorator('DtDdWrapper');
    	$this->addElements(array($nick_name,$submit));
    }


}

